using System.ComponentModel.DataAnnotations;

namespace BlazorApp1.Data;

public class LoanInfo
{
    [Key]
    public string Id { get; set; } = default!;
    [Required]
    public string DeviceId  { get; set; } = default!;
    [Required]
    public string Leaseholder  { get; set; } = default!;
    [Required]
    public DateTime LoanTime { get; set; }
    public DateTime ReturnTime { get; set; }
    public string? Remark { get; set; }
}